// 自动生成模板UserProject
package model

import (
      "gin-vue-admin/global"
      "github.com/go-sql-driver/mysql"
)

// 如果含有time.Time 请自行import time包
type UserProject struct {
      global.GVA_MODEL
      AttAdvice  string `json:"attAdvice" form:"attAdvice" gorm:"column:att_advice;comment:律师备注;type:varchar(255);"`
      AttAgree  *bool `json:"attAgree" form:"attAgree" gorm:"column:att_agree;comment:律师意见;type:tinyint"`
      AllPrice  float64 `json:"allPrice" form:"allPrice" gorm:"column:all_price;comment:项目总金额（万）;type:decimal;size:10,2;"`
      ApplyPrice  float64 `json:"applyPrice" form:"applyPrice" gorm:"column:apply_price;comment:申请授信金额;type:decimal;size:10,2;"`
      AuthClientBook  string `json:"authClientBook" form:"authClientBook" gorm:"column:auth_client_book;comment:施工企业授权委托书;type:varchar(255);"`
      BankAddress  string `json:"bankAddress" form:"bankAddress" gorm:"column:bank_address;comment:开户行;type:varchar(255);"`
      BankName  string `json:"bankName" form:"bankName" gorm:"column:bank_name;comment:项目结算账户名;type:varchar(255);"`
      BankNumber  string `json:"bankNumber" form:"bankNumber" gorm:"column:bank_number;comment:项目结算账号;type:varchar(266);"`
      BidFile  string `json:"bidFile" form:"bidFile" gorm:"column:bid_file;comment:中标通知书;type:varchar(255);"`
      BidOntract  string `json:"bidOntract" form:"bidOntract" gorm:"column:bid_ontract;comment:中标合同;type:varchar(255);"`
      Commitment  string `json:"commitment" form:"commitment" gorm:"column:commitment;comment:项目经理，技术负责人和施工负责人签字样式确认及承诺书;type:varchar(255);"`
      ConCer  string `json:"conCer" form:"conCer" gorm:"column:con_cer;comment:施工许可证;type:varchar(255);"`
      ConUnit  string `json:"conUnit" form:"conUnit" gorm:"column:con_unit;comment:施工单位;type:varchar(255);"`
      CreditReport  string `json:"creditReport" form:"creditReport" gorm:"column:credit_report;comment:信用报告;type:varchar(255);"`
      HolderCommitLetter  string `json:"holderCommitLetter" form:"holderCommitLetter" gorm:"column:holder_commit_letter;comment:控股股东或实控连带担保承诺函;type:varchar(255);"`
      NowStatus  int `json:"nowStatus" form:"nowStatus" gorm:"column:now_status;comment:当前状态，10为申请;type:smallint;"`
      OutUnit  string `json:"outUnit" form:"outUnit" gorm:"column:out_unit;comment:发包单位;type:varchar(255);"`
      PayCommitLetter  string `json:"payCommitLetter" form:"payCommitLetter" gorm:"column:pay_commit_letter;comment:项目唯一指定结算账户确认书及承诺书;type:varchar(255);"`
      PlanCer  string `json:"planCer" form:"planCer" gorm:"column:plan_cer;comment:规划许可证;type:varchar(255);"`
      ProAddress  string `json:"proAddress" form:"proAddress" gorm:"column:pro_address;comment:项目地点;type:varchar(255);"`
      ProName  string `json:"proName" form:"proName" gorm:"column:pro_name;comment:项目名称;type:varchar(255);"`
      ProTime  string `json:"proTime" form:"proTime" gorm:"column:pro_time;comment:项目工期;type:varchar(255);"`
      SaveCer  string `json:"saveCer" form:"saveCer" gorm:"column:save_cer;comment:安全生成许可证;type:varchar(255);"`
      TenderFile  string `json:"tenderFile" form:"tenderFile" gorm:"column:tender_file;comment:投标文件;type:varchar(255);"`
      UserId  int `json:"userId" form:"userId" gorm:"column:user_id;comment:会员ID;type:int;size:10;"`
      Users Users `json:"users" gorm:"foreignKey:ID;references:UserId"`
      UserProjectRefund []UserProjectRefund `json:"user_project_refund"  gorm:"foreignKey:ProjectId;references:ID"`
      AdminId int `json:"adminId"  gorm:"column:admin_id;comment:办理人员id;type:int;size:10;"`
      SysUser SysUser ` json:"sys_user"  gorm:"foreignKey:ID;references:AdminId"`
      AgreeTime mysql.NullTime  `json:"agreeTime" form:"agreeTime" gorm:"column:agree_time;comment:同意申请时间;type:date;"`

}


func (UserProject) TableName() string {
  return "user_project"
}

